//
//  LGSiJiCreateViewController.m
//  ligenyun
//
//  Created by Mac on 2018/3/24.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGSiJiCreateViewController.h"
#import "LGSiJiCustomCreateViewController.h"
#import "LGSiJiPublicCreateViewController.h"
@interface LGSiJiCreateViewController ()

@end

@implementation LGSiJiCreateViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"创建陵园";
    [self configSubView];
    // Do any additional setup after loading the view.
}

#pragma mark --subView
- (void)configSubView{
    UIImageView * imageView = [[UIImageView alloc] initWithFrame:self.tableView.bounds];
    imageView.image = [UIImage imageNamed:@"创建陵园bg"];
    self.tableView.backgroundView = imageView;
    
    __weak typeof(self) weakSelf =  self;
    STButton * lingyuanButton = [[STButton alloc] initWithFrame:CGRectMake(15, 100, UIScreenWidth - 30, 44)
                                                     title:@"创建陵园"
                                                titleColor:FirstTextColor
                                                 titleFont:18
                                              cornerRadius:0
                                           backgroundColor:nil
                                           backgroundImage:[UIImage imageNamed:@"创建私人陵园bg"]
                                                     image:nil];
    [lingyuanButton setClicAction:^(UIButton *sender) {
        [weakSelf.navigationController pushViewController:[LGSiJiCustomCreateViewController new] animated:YES];
    }];
    [self.tableView addSubview:lingyuanButton];
    
    
    STButton * jinianguanButton = [[STButton alloc] initWithFrame:CGRectMake(15, lingyuanButton.bottom + 20, UIScreenWidth - 30, 44)
                                                          title:@"创建公众纪念馆"
                                                     titleColor:FirstTextColor
                                                      titleFont:18
                                                   cornerRadius:0
                                                backgroundColor:nil
                                                backgroundImage:[UIImage imageNamed:@"创建私人陵园bg"]
                                                          image:nil];
    [jinianguanButton setClicAction:^(UIButton *sender) {
        [weakSelf.navigationController pushViewController:[LGSiJiPublicCreateViewController new] animated:YES];
    }];
    [self.tableView addSubview:jinianguanButton];
    
    jinianguanButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
     lingyuanButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
}



@end
